home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / src / appl / napsaterm / Smakefile < prev    next >
Makefile  |  1994-05-14  |  5KB  |  179 lines

  1. # $Id: Smakefile,v 3.7 1994/05/14 13:50:13 ppessi Exp $
  2. #
  3. # Smakefile for Napsaterm 3
  4. #
  5. # Copyright © 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  6. #                  Helsinki University of Technology, Finland.
  7. #
  8. # Created      : Mon Mar 22 07:17:50 1993 ppessi
  9. # Last modified: Sat May 14 16:03:10 1994 ppessi
  10. #
  11. # $Log: Smakefile,v $
  12. # Revision 3.7  1994/05/14  13:50:13  ppessi
  13. # Removed separate tektronix version
  14. #
  15. # Revision 3.6  1994/05/14  10:58:08  ppessi
  16. # Updated to include telnet protocol and tektronix emulation code.
  17. #
  18. # Revision 3.5  1994/02/25  21:49:51  ppessi
  19. # Fixed bug in install dependencies
  20. #
  21. # Revision 3.4  1994/02/25  16:10:48  ppessi
  22. # Smakefile for non-debugging version (no assert() etc)
  23. #
  24. # Revision 3.3  1994/01/16  17:48:02  ppessi
  25. # Added info files
  26. #
  27. # Revision 3.2  94/01/16  16:16:12  ppessi
  28. # Updated installation, archive, version tags
  29. # Revision 3.1  94/01/08  09:00:30  ppessi
  30. # Napsaterm 3ß
  31. #
  32. # Revision 2.0  93/11/15  03:28:26  ppessi
  33. # Version 2 initial revision
  34. #
  35.  
  36. PROG=  napsaterm
  37.  
  38. VERS= 3
  39.  
  40. SRCS=  $(PROG).c tel_iacout.c tel_opt.c tel_subneg.c tel_main.c \
  41.        napsaprefs.c nio.c misc.c emulate.c display.c \
  42.        amigadisplay.c beep.c clip.c keymap.c national.c fonts.c wimp.c \
  43.        tek4010.c
  44. OBJS=  $(PROG).o tel_iacout.o tel_opt.o tel_subneg.o tel_main.o \
  45.        napsaprefs.o nio.o misc.o emulate.o wimp.o display.o \
  46.        amigadisplay.o beep.o clip.o keymap.o national.o fonts.o \
  47.        tek4010.o
  48. INCS=  amiga.h config.h display.h dispmacros.h napsaprefs.h \
  49.        national.h nifty.h nio.h rlogin.h wimp.h ascii_ctrl.h \
  50.        telnet.h tel_iacout.h tel_opt.h tel_subneg.h
  51. DOCS=  $(PROG).texi
  52. MISC=  Smakefile gst.c mymap.c $(PROG).info
  53. PREFS= napsaprefs
  54.  
  55. GUIDES= $(PROG).guide $(PROG).guide.info
  56. GST=   napsa.gst
  57. ARC=   napsaterm.lha
  58.  
  59. # Uncomment dnetlibs if you are using DNET
  60. # DNETLIBS = lib lib:sas_dnet.lib lib lib:sas_sup.lib
  61. LIBS= Lib lib:sc.lib Lib Netlib:net.lib $(DNETLIBS)
  62. DEBUGLIBS= Lib Netlib:gnet.lib assert.o $(DNETLIBS)
  63.  
  64. CC=      sc
  65. LD=      sc
  66. MAKE=    smake
  67. TAGS=    etags
  68. RM=      delete quiet
  69. MKDIR=   makedir
  70. INSTALL= copy nopro dates all
  71. BUMPREV= BumpRev
  72. RCSREV=  rcsrev prefix=AmiTCP/IP_
  73. CAT=     type
  74. MAKEINFO= makeinfo --amiga
  75. ARCHIVER= lha
  76.  
  77. DEST=    AmiTCP:
  78.  
  79. CONFIG= DEF=NDEBUG=1
  80.  
  81. DCFLAGS= NoOptimize DEBUG=FULLFLUSH
  82. CFLAGS=  Optimize Debug=Line
  83. LDFLAGS= Stripdebug 
  84.  
  85. # "DEF=RCS_ID_C=static char *rcsid"
  86. DEFS=    $(CONFIG) DEF=RCS_ID_C=// DEF=AMIGA=1 
  87. # Include directories for DNet can be commented out (they are not included)
  88. IDIRS=   IDIR=netinclude: #IDIR=suplib:include/ IDIR=dnet:include/
  89. SCOPTIONS= STRINGMERGE STRUCTUREEQUIVALENCE \
  90.      NOSTACKCHECK NOMULTIPLEINCLUDES \
  91.      NOERRORSOURCE NOVERSION NOERRORHIGHLIGHT \
  92.      SMALLDATA \
  93.      MAP MAPHUNK MAPSYMBOLS MAPLIB MAPXREFERENCE \
  94.      NOICONS BATCH \
  95.      OPTINL OPTTIME OPTCOMP=5 OPTDEP=5 OPTRDEP=5 \
  96.      $(IDIRS) $(DEFS) \
  97.      GST=$(GST) PARM=REG \
  98.      LINKEROPTIONS="PLAIN SWIDTH 32" IGN=306
  99.  
  100. all: $(PROG) $(DOCS)
  101.  
  102. $(PROG): SCOPTIONS $(GST) $(OBJS)
  103.     $(CC) LINK TO $@ OBJ $(OBJS) BATCH $(LIBS) $(LDFLAGS) $(CFLAGS)
  104.  
  105. $(PROG).guide: $(PROG).texi
  106.     $(MAKEINFO) $< -o $(PROG).guide
  107.  
  108. $(PROG)_rev.h: $(PROG).c
  109.     -$(RCSREV) $(PROG) $(PROG).c
  110.  
  111. debug:
  112.     $(MAKE) "CFLAGS=$(DCFLAGS)" "LIBS=$(DEBUGLIBS)" "LDFLAGS=" $(PROG)
  113.  
  114. .c.o:
  115.     -@$(RM) $*.o  > nil:
  116.     $(CC) $(CFLAGS) $*.c
  117.  
  118. SCOPTIONS: Smakefile
  119.     copy to $@ <from <
  120. $(SCOPTIONS)
  121. <
  122.  
  123. install: $(PROG) $(GUIDES) $(DEST)bin $(DEST)help $(DEST)db
  124.     $(INSTALL) FROM $(PROG) TO $(DEST)bin/$(PROG)
  125.     $(INSTALL) FROM $(PROG).info TO $(DEST)bin/$(PROG).info
  126.     $(INSTALL) FROM $(PREFS) TO $(DEST)db
  127.     $(INSTALL) FROM $(GUIDES) TO $(DEST)help
  128.  
  129. $(DEST)bin:
  130.     -$(MKDIR) $@
  131. $(DEST)db:
  132.     -$(MKDIR) $@    
  133. $(DEST)help:
  134.     -$(MKDIR) $@    
  135.  
  136. $(ARC): $(SRCS) $(INCS) $(MISC) $(DOCS) $(PROG) $(PREFS) $(GUIDES)
  137.     -@$(RM) $@ > nil:
  138.     $(ARCHIVER) a $@ < -i< 
  139.     $(SRCS) $(INCS) $(MISC) $(DOCS) $(PROG) $(PREFS) $(GUIDES)
  140. <
  141.  
  142. TAGS:    $(SRCS)
  143.     $(TAGS) $(SRCS)
  144.  
  145. clean:
  146.     -$(RM) \#?.(o|map|lnk|gst|teko) SCOPTIONS
  147.  
  148. $(GST): config.h amiga.h
  149.     gst `cd`/$@ unload
  150.     -@$(RM) $@ >nil:
  151.     sc NOOBJNAME NOGST MAKEGST=$@ gst.c
  152.  
  153. # DO NOT DELETE THIS LINE -- make depend depends on it.
  154. amigadisplay.o: amigadisplay.c amiga.h nifty.h display.h dispmacros.h \
  155.     napsaprefs.h wimp.h nio.h national.h config.h
  156. beep.o: beep.c amiga.h display.h config.h
  157. clip.o: clip.c amiga.h nifty.h config.h
  158. display.o: display.c nifty.h display.h dispmacros.h napsaprefs.h config.h
  159. emulate.o: emulate.c nifty.h display.h napsaprefs.h config.h
  160. fonts.o: fonts.c amiga.h nifty.h display.h dispmacros.h napsaprefs.h wimp.h\
  161.     config.h
  162. keymap.o: keymap.c wimp.h nifty.h amiga.h display.h napsaprefs.h  config.h
  163. misc.o: misc.c amiga.h nifty.h config.h
  164. napsaprefs.o:  napsaprefs.c nifty.h display.h dispmacros.h napsaprefs.h\
  165.     config.h
  166. napsaterm.o: napsaterm.c napsaterm_rev.h \
  167.     nifty.h nio.h napsaprefs.h amiga.h config.h
  168. national.o:  national.c nio.h amiga.h napsaprefs.h national.h  config.h
  169. nio.o: nio.c nio.h amiga.h napsaprefs.h rlogin.h config.h
  170. rcmd.o: rcmd.c rlogin.h
  171. wimp.o: wimp.c amiga.h display.c nifty.h display.h dispmacros.h napsaprefs.h \
  172.    wimp.h config.h
  173. tel_main.o: tel_main.c telnet.h tel_opt.h tel_subneg.h tel_iacout.h
  174. tel_opt.o: tel_opt.c telnet.h tel_opt.h tel_iacout.h
  175. tel_iacout.o: tel_iacout.c telnet.h tel_iacout.h
  176. tel_subneg.o: tel_subneg.c telnet.h tel_subneg.h tel_iacout.h
  177. tek4010.o: tek4010.c amiga.h nifty.h napsaprefs.h wimp.h ascii_ctrl.h
  178.